<template>
	<view class="information-list" v-if="list">
		<uni-swipe-action v-if="list.length > 0">
			<uni-swipe-action-item  v-for="(item,index) in list" :key="index" :right-options="item.sources !=3  ? options : []"  @click="bindClick(item)">
				<view class="item"  @click="toView(item)">
					<div class="item-l">
						<image mode="aspectFill" :src="!item.sources || item.sources == 3 ?'../../../static/img/monitor/archived.png':'../../../static/img/monitor/not-archived.png'"></image>
						<text v-if="item.sources == 3">{{item.healthName}}</text>
						<text v-if="item.sources == 1">{{item.realName}}</text>
					</div>
					<div class="item-c">
						<p>个人基本信息表</p>
						<p>表单编号：{{!item.status || item.status == 1?'未存档':item.sn}}</p>
						<p>{{!item.status || item.status == 1?'存档时间：未存档': (item.sources == 1? '存档时间：' : '签发时间：') +item.updateTime}}</p>
					</div>
					<div :class="['item-r',!item.status || item.status == 1?'not-archived':'archived']">{{!item.status || item.status == 1?'未存档':'已存档'}}</div>
				</view>
			</uni-swipe-action-item>
		</uni-swipe-action>
		<view class="nulldata" style="text-align: center;font-size: 26upx;color: #ccc;padding: 20upx 0;" v-if="nullData && list && list.length > 0">
			<view>没有更多数据了</view>
		</view>
		<view class="noneChating" v-if="list.length <= 0">
			<image src="../../../static/img/index/chattingNone.png"></image>
			<view>暂无数据</view>
		</view>
	</view>
</template>
<script src="@/static/js/monitor/information/informationlist.js"></script>
<style lang="scss" scoped>
	.noneChating {
		padding-top: 228upx;
		image {
			display: block;
			margin: 0 auto;
			width: 260upx;
			height: 154upx;
			
		}
		view {
			margin: 24px auto;
			text-align: center;
			color: #333333;
			font-size: 13px;
		}
	}
	@import '@/static/css/monitor/information/informationlist.scss';
</style>
